package com.example.controller;

import com.example.service.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 消息发送 前端控制层
 *
 * @author Lv
 * @date 2023/4/1
 */
@RestController
@RequestMapping("/send")
public class SendController {
    @Autowired
    private SendService sendService;

    /**
     * 发送
     */
    @PostMapping("/")
    public void send() {
        sendService.send();
    }
}
